package com.symphony.preperetion;

import java.lang.reflect.Method;

class A {
	
	public A() {
		
	}

	public A(int a) {
		
	}

	public void m(int a) {
		System.out.println("method " + a);
	}
}

public class Reflection {
	
	
	public static void main(String[] args) {
		try {
			Class a = Class.forName("com.symphony.preperetion.A");
			A newA = (A) a.newInstance();

			Method[] methods = a.getMethods();
			
			Method merhod = a.getMethod("m");
			
			for(Method m : methods)
				System.out.println(m.getName());

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
